package com.jy.wms.common.quartz;

import com.jy.wms.pojo.WmsPickingTaskDps;
import com.jy.wms.service.WmsPickingService;
import com.jy.wms.service.WmsProductVelocityService;
import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.text.SimpleDateFormat;

/**
 * dps拣货任务定时器job
 * Created by syh on 2018/5/8.
 */
public class WmsPickingVelocityScheduledJob implements Job {
    private WmsPickingService wmsPickingService;
    private static Logger log = LoggerFactory.getLogger(WmsPickingService.class);
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        try {
            JobDataMap dataMap = context.getJobDetail().getJobDataMap();
            wmsPickingService = (WmsPickingService)dataMap.get("wmsPickingService");
           //wmsPickingService.savePicking();
        } catch (Exception e) {
            log.info("拣货任务操作失败日志："+e.getMessage());
            //e.printStackTrace();
        }
    }
}